/*
 * *****************************************************************************
 * Copyright (c) 2013-2014 CriativaSoft (www.criativasoft.com.br)
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *  Ricardo JL Rufino - Initial API and Implementation
 * *****************************************************************************
 */

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}


@font-face {
    font-family: 'PTSansRegular';
    src: url('/css/fonts/ptsans/PTS55F-webfont.eot');
    src: url('/css/fonts/ptsans/PTS55F-webfont.eot?#iefix') format('embedded-opentype'),
    url('/css/fonts/ptsans/PTS55F-webfont.woff') format('woff'),
    url('/css/fonts/ptsans/PTS55F-webfont.ttf') format('truetype'),
    url('/css/fonts/ptsans/PTS55F-webfont.svg#PTSansRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Google Fonts
----------------------------------------------------------------------------------------------------*/

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 300;
    font-style: normal;
    src: url('/fonts/Source-Sans-Pro-300/Source-Sans-Pro-300.eot');
    src: url('/fonts/Source-Sans-Pro-300/Source-Sans-Pro-300.eot?#iefix') format('embedded-opentype'),
    local('Source Sans Pro Light'),
    local('Source-Sans-Pro-300'),
    url('/fonts/Source-Sans-Pro-300/Source-Sans-Pro-300.woff2') format('woff2'),
    url('/fonts/Source-Sans-Pro-300/Source-Sans-Pro-300.woff') format('woff'),
    url('/fonts/Source-Sans-Pro-300/Source-Sans-Pro-300.ttf') format('truetype'),
    url('/fonts/Source-Sans-Pro-300/Source-Sans-Pro-300.svg#SourceSansPro') format('svg');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 400;
    font-style: normal;
    src: url('/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.eot');
    src: url('/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.eot?#iefix') format('embedded-opentype'),
    local('Source Sans Pro'),
    local('Source-Sans-Pro-regular'),
    url('/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.woff2') format('woff2'),
    url('/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.woff') format('woff'),
    url('/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.ttf') format('truetype'),
    url('/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.svg#SourceSansPro') format('svg');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 700;
    font-style: normal;
    src: url('/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.eot');
    src: url('/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.eot?#iefix') format('embedded-opentype'),
    local('Source Sans Pro Bold'),
    local('Source-Sans-Pro-700'),
    url('/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.woff2') format('woff2'),
    url('/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.woff') format('woff'),
    url('/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.ttf') format('truetype'),
    url('/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.svg#SourceSansPro') format('svg');
}

/* Settings for Plugins
----------------------------------------------------------------------------------------------------*/
@media  (max-width: 480px) {
    .main-header a.logo{
        display: none;
    }
}


/* Settings for Plugins
----------------------------------------------------------------------------------------------------*/

.select2-drop li {
    margin-left: 0px; /* fix mws defaults*/
}

.select2-drop ul {
    margin-bottom: 3px; /* fix mws defaults*/
}



.ui-dialog-content .mws-form-row {
    padding: 4px 0px !important;
}

.mws-header-actions{
    float: right;
    /* right: 13px; */
    /* top: 50%; */
    margin-top: -25px;
    margin-left: 5px;
    /* -webkit-border-radius: 3px; */
    -moz-border-radius: 3px;
    /* border-radius: 3px; */
}

.mws-header-actions .select2{
    margin-top: -2px;
}

.mws-header-actions .mws-button .ui-icon{
    display: inline-block;
    vertical-align: text-bottom;
}

.mws-header-actions .select2-chosen span{
    color: #343434 !important;
}



/* AdminLTE extension and Changes
----------------------------------------------------------------------------------------------------*/

.navbar-text {
    left: 0;
    text-align: left;
    margin: auto;
    display: inline-block;
    font-size: 20px;
    line-height: 50px;
    color: #ffffff;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 300;
}

.content-header {
    background-color: white !important;
    padding-bottom: 12px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.content-header>.breadcrumb>li+li:before {
    content: normal !important;
}

.content-header>.breadcrumb {
    top: 4px !important;
}

.content-header .fa-arrow-right{
    font-size: 12px;
    vertical-align: middle;
    color: #777;
}

.breadcrumb .btn {
    line-height: 0.428571;
    height: 30px;
    color: white !important;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently
                                  not supported by any browser */
}

.sidebar-content{
    padding-right: 5px;
    padding-left: 5px;
}

.dash-add-box.small-box {
    cursor: pointer;
    margin-bottom: 0px;
    margin-top: 5px;
}

.dash-add-box.small-box .icon{
    font-size: 54px;
}

.dash-add-box.small-box h3 {
    font-size: 18px;
}

/* when hiding the picture */
.animate-show.ng-hide-add         { animation:0.2s fadeOutUp ease; }

/* when showing the picture */
.animate-show.ng-hide-remove      { animation:0.5s flipInX ease; }


/* ANIMATIONS (FROM ANIMATE.CSS) ======================== */
/* flip in */
@keyframes flipInX {
    0% {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        transition-timing-function: ease-in;
        opacity: 0;
    }

    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transition-timing-function: ease-in;
        transition-timing-function: ease-in;
    }

    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }

    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }

    100% {
        transform: perspective(400px);
        transform: perspective(400px);
        transform: perspective(400px);
    }
}


@keyframes fadeOutUp {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
}

/* light speed out */
@keyframes lightSpeedOut {
    0% {
        opacity: 1;
    }

    100% {
        transform: translate3d(100%, 0, 0) skewX(30deg);
        transform: translate3d(100%, 0, 0) skewX(30deg);
        opacity: 0;
    }
}

@keyframes lightSpeedOut {
    0% {
        opacity: 1;
    }

    100% {
        transform: translate3d(100%, 0, 0) skewX(30deg);
        transform: translate3d(100%, 0, 0) skewX(30deg);
        transform: translate3d(100%, 0, 0) skewX(30deg);
        opacity: 0;
    }
}

/* On-Off Controllers
----------------------------------------------------------------------------------------------------*/

.device-view-container {
    width: 100%;
    /*margin-bottom: 24px*/
}

.device-view {
    width: 18% !important;
    min-width: 167px;
    margin: 8px 1% !important;
    min-height: 55px;
    float: left;
    display: block;
    text-decoration: none;
    color: #323232;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #ccc;
    -webkit-border-radius: 6px;
    -o-border-radius: 6px;
    -moz-border-radius: 6px;
    -khtml-border-radius: 6px;
    border-radius: 6px;
    -webkit-touch-callout: none;
}

.device-digital {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.device-digital:hover {
    background-color: #d0f6ff
}

.device-view:active {
    background-image: none;
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    -o-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    -khtml-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
}

.device-view .device-view-icon {
    width: 48px;
    height: 100%;
    padding: 10px;
    float: left;
    display: block;
    border-right: 1px solid #ccc;
    background-position: center center;
    background-repeat: no-repeat;
}

.device-view-icon img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 32px;
    height: 32px;
}

.device-view .device-view-content {
    margin-left: 49px;
    display: block;
    padding: 2px 7px;
}

.device-view .device-view-content .device-view-title {
    white-space: nowrap;
    display: block
}

.device-view .device-view-content .device-view-value {
    font-size: 21px;
    font-weight: bold;
    display: inline-block;
}

.device-view .device-view-content .device-view-value.on {
    padding-right: 24px;
    color: #64a303
}

.device-view .device-view-content .device-view-value.off {
    /* padding-right: 0px; */
    color: #f53809;
}

.device-view .dash-actions {
    display: inline-block;
    position: relative;
    top: 41px;
    right: -20px;
}


.device-view .dash-actions span:hover {
    color: #3c8dbc;
}


.breadcrumb-device{
    padding: 0;
    margin: 0;
    background: transparent;
    display:block
}
.breadcrumb-device li{
    display:inline-block;
}

.breadcrumb-device>li+li:before {
    /*content: '>\00a0';*/
}


/* Image/Video view
----------------------------------------------------------------------------------------------------*/

.image-view {
    width: 100%;
    height: 100%;
}

.image-view img {
    display: block;
    width: 100%;
    height: 100%;
}


/* Dashboards
----------------------------------------------------------------------------------------------------*/


.dashboards{
    min-height: 500px;
}

.dashboards * {
    margin: 0;
    padding: 0;
}

.dashboards canvas{
    width: auto;
    height: 100% !important;
    margin-left: 5px;
    margin-right: 5px;
    /*border: 1px red solid;*/
}

.dashboards ul{
    width: 100%;
}
.dashboards li{
    list-style-type: none;
    border: 1px solid #bcbcbc;
    background-color: #f8f8f8;
    -webkit-box-shadow: 0 3px 3px -2px rgba(0,0,0,0.15);
    -moz-box-shadow: 0 3px 3px -2px rgba(0,0,0,0.15);
    -o-box-shadow: 0 3px 3px -2px rgba(0,0,0,0.15);
    -khtml-box-shadow: 0 3px 3px -2px rgba(0,0,0,0.15);
    box-shadow: 0 3px 3px -2px rgba(0,0,0,0.15);
}

.dash-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
}

.dash-wrapper h3{
    font-size: 14px;
    padding: 2px;
    display: inline-block;
}

.dash-header{
    height: 25px;
    border-bottom: 1px solid #ddd;
    background-color: #f5f5f5;
}

.dash-footer{
    min-height: 25px;
    border-top: 1px solid #ddd;
}



.dash-body{
    flex: 2 ;/* 2 and it will fill whole space left */

    /** vertical-centering of childs */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-flow: row wrap;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    /*height: 24em;*/
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;

    color: #405B76;
}


/** vertical-centering of childs */
.dash-body * {
    -webkit-box-flex: 0;
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.dash-wrapper:hover .dash-actions{
    display: inline-block;
    z-index: 1;
}

.dash-actions .btn-circle{
    border-radius: 14px;
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.dash-actions SPAN{
    cursor: pointer;
    padding: 3px;
    width: 17px;
    height: 17px;
    background-color: #FAFAFA;
    border: 1px solid #cccccc;
    display: inline-block;
    min-width: 10px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    color: #666;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10px;
}

.dash-actions{
    display: none;
    float: right;
    padding-right: 4px;
    position: absolute;
    top: 0px;
    right: 0px;
}

.dash-actions button{
    background-color: #FAFAFA;
    border: 1px solid #cccccc;
    color: blue;
}

.dash-actions .fa-remove{
    color: #a75757;
}

.dash-icon {
    padding: 0;
    display: block;
    cursor: pointer;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
    text-indent: -99999px;
    overflow: hidden;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
}


.device-type-1{ /*DIGITAL*/
    background-color: #0073b7 !important;
}
.device-type-2{ /*ANALOG*/
    background-color: #00a65a !important;
}
.device-type-3{ /*NUMERIC*/
    background-color: #dd4b39 !important;
}
.device-type-4{ /*CHARACTER*/
    background-color: #f39c12 !important;
}
.device-type-10{ /*BOARD*/
    background-color: #00c0ef !important;
}
.device-type-11{ /*MANAGER*/
    background-color: #605ca8 !important;
}

.dash-move{
    cursor: move;
}

.gridster-preview-holder {
    border: 2px dashed #3ca4ff !important;
}

.handle-s , .handle-n, .handle-ne, .handle-sw, .handle-nw {
    height: 3px !important;
}

.handle-e, .handle-w, .handle-ne, .handle-sw, .handle-nw{
    width: 3px !important;
}

/** Avoid double click select */
.gridster.no_selection {
    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
    -moz-user-select: none; /* mozilla browsers */
    -khtml-user-select: none; /* webkit (konqueror) browsers */
    -ms-user-select: none; /* IE10+ */
}

/*.highcharts-container{*/
/*border: 1px solid red;*/
/*}*/

/* DashItem Views
----------------------------------------------------------------------------------------------------*/

.advancedOptionsBar{
    border-bottom: 1px dashed silver;
    cursor: pointer;
}
.advancedOptionsBar .ui-icon{
    display: inline-block;
}

.modal-info .modal-body{
    background-color: #ffffff !important;
}


.checkbox-circle{  /* Override: awesome-bootstrap-checkbox */
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    outline: none;
}

.checkbox input[type="checkbox"]:focus + label::before { /* Override Bootstrap: remove focus effect */
    outline: 0px !important;
    -webkit-appearance:none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

.radio input[type="radio"]:focus + label::before {  /* Override Bootstrap: remove focus effect */
    outline: 0px !important;
    -webkit-appearance:none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

.widget-user-actions{
    float: right;
    list-style-type: none;
    margin-right: 9px;
    margin-top: 5px;
}

.widget-user-actions a{
    color: white;
}

/* Bootstrap notify, with textarea inside */
.alert span textarea{
    color: #2a2a2a;
}

/* bootstrap-notify */
[data-notify="container"] > [data-notify="title"] {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}


.chart-modal {
    position: fixed;
    width: 100% !important;
    height: 100% !important;
    top: 0;
    left: 0;
    z-index: 65000;
    background: rgba(0, 0, 0, 0.7);
}
.chart-modal .chart {
    height: 90%;
}

.form-invalid{
    background:#fff url(../images/icons/invalid_line.gif) repeat-x bottom !important;
    /*border: 1px solid #dd7870 !important;*/
}